<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">
            <colgroup>
                <col width="5%">
                <col width="5%">
                <col width="15%">
                <!-- <col width="10%"> -->
                <col width="5%">
                <col width="10%">

                <!-- <col width="10%"> -->
                <col width="15%">
                <!-- <col width="5%"> -->
                <col width="5%">
                <col width="5%">
                <col width="30%">
            </colgroup>
            <thead>
                <tr>
                    <td class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);"></td>

                    <td class="text-right">
                        <a href="javascript:sort('user_id');">ID</a>
                    </td>
                    <td class="text-left">
                        <a href="javascript:sort('username');">会员昵称</a>
                    </td>
                    <td class="text-left">
                        头像
                    </td>
                    <!-- <td class="text-left">
                                        <a href="javascript:sort('level');">会员等级</a>
                                    </td> -->
                    <td class="text-left">
                        <a href="javascript:sort('total_amount');">累计消费</a>
                    </td>
                    <!--  <td class="text-left">
                                        <a href="javascript:sort('email');">邮件地址</a>
                                    </td> -->


                    <td class="text-left">
                        <a href="javascript:sort('mobile');">手机号码</a>
                    </td>
                    <td class="text-left">
                        <a href="javascript:sort('user_money');">{:C('USER_MONEY_NAME')}</a>
                    </td>
                    <td class="text-left">
                        <a href="javascript:sort('pay_points');">{:C('POINT_NAME')}</a>
                    </td>

                    <td class="text-right">操作</td>
                </tr>
            </thead>
            <tbody>
                <volist name="userList" id="list">
                    <tr>
                        <td class="text-center">
                            <input type="checkbox" name="selected[]" value="{$list['user_id']}">
                            <input type="hidden" name="shipping_code[]" value="flat.flat">
                        </td>
                        <td class="text-right">{$list.user_id}</td>
                        <td class="text-left">{$list.nickname}</td>
                        <td class="text-left">
                            <notempty name="list.head_pic">
                                <img src="{$list.head_pic}" height="120" width="120"/>
                            </notempty>
                        </td>
                        <!-- <td class="text-left">{$level[$list[level]]}</td> -->
                        <td class="text-left">{$list.total_amount}</td>
                        <!-- <td class="text-left">{$list.email}
                                            <if condition="($list['email_validated'] eq 0) AND ($list['email'])">
                                                (未验证)
                                            </if>
                                        </td> -->

                        <td class="text-left">{$list.mobile}
                            <if condition="($list['mobile_validated'] eq 0) AND ($list['mobile'])">
                                (未验证)
                            </if>
                        </td>
                        <td class="text-left">{$list.user_money}</td>
                        <td class="text-left">{$list.pay_points}</td>

                        <td class="text-right">
                            <a href="{:U('Admin/user/detail',array('id'=>$list['user_id']))}" data-toggle="tooltip"
                                title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye" title="查看详情"></i></a>
                            <a href="{:U('Admin/user/address',array('id'=>$list['user_id']))}" data-toggle="tooltip"
                                title="" class="btn btn-info" data-original-title="收货地址"><i class="fa fa-home" title="收货地址"></i></a>
                            <a href="{:U('Admin/order/index',array('user_id'=>$list['user_id']))}" data-toggle="tooltip"
                                title="" class="btn btn-info" data-original-title="订单查看"><i class="fa fa-shopping-cart"></i></a>
                            <a href="{:U('Admin/user/account_log',array('id'=>$list['user_id']))}" data-toggle="tooltip"
                                title="" class="btn btn-info" data-original-title="账户"><i class="glyphicon glyphicon-yen"
                                    title="账户"></i></a>
                            <a href="{:U('Admin/user/delete',array('id'=>$list['user_id']))}" id="button-delete6"
                                data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"
                                    title="删除"></i></a>
                        </td>
                    </tr>
                </volist>
            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left">
    </div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function () {
        var page = $(this).data('p');
        ajax_get_table('search-form2', page);

    });


    $(function () {
        $("[data-toggle='tooltip']").tooltip();
    })
</script>